package com.calvin.study.ocr6;

import org.springframework.stereotype.Service;

import com.calvin.study.ocr6.ProcessorChain;

@Service
public class Temp01Processor extends AbstractService implements IParseService {

	@Override
	public boolean parseMx(Product product,ProcessorChain chain) throws Exception {
		if("01".equals(product.getTemp())) {
			System.out.println("模板01解析");
			return true;
		}
		return chain.process(product);
	}
}
